import { VipLevel } from '../types/vip';
import type { VipPackage } from '../types/vip';

// VIP套餐数据
export const vipPackages: VipPackage[] = [
  {
    id: 'bronze-monthly',
    name: '青铜会员月度套餐',
    level: VipLevel.BRONZE,
    duration: 30,
    price: 29,
    discountRate: 0.95, // 95折
    description: '基础VIP服务，适合普通用户',
    benefits: [
      '购买配件享受95折优惠',
      '每月获得1次专属装机方案',
      '优先客服支持'
    ]
  },
  {
    id: 'silver-monthly',
    name: '白银会员月度套餐',
    level: VipLevel.SILVER,
    duration: 30,
    price: 59,
    discountRate: 0.90, // 9折
    description: '进阶VIP服务，性价比之选',
    benefits: [
      '购买配件享受9折优惠',
      '购买整机享受额外5%折扣',
      '每月获得2次专属装机方案',
      '优先客服支持',
      '配件优惠券搜索功能'
    ]
  },
  {
    id: 'gold-quarterly',
    name: '黄金会员季度套餐',
    level: VipLevel.GOLD,
    duration: 90,
    price: 149,
    discountRate: 0.85, // 85折
    description: '高级VIP服务，适合游戏玩家',
    benefits: [
      '购买配件享受85折优惠',
      '购买整机享受额外10%折扣',
      '每月获得3次专属装机方案',
      '7x24小时专属客服',
      '配件优惠券搜索功能',
      '新品优先购买权'
    ]
  },
  {
    id: 'platinum-yearly',
    name: '铂金会员年度套餐',
    level: VipLevel.PLATINUM,
    duration: 365,
    price: 499,
    discountRate: 0.80, // 8折
    description: '顶级VIP服务，尊享特权体验',
    benefits: [
      '购买配件享受8折优惠',
      '购买整机享受额外15%折扣',
      '无限次专属装机方案',
      '7x24小时专属客服',
      '配件优惠券搜索功能',
      '新品优先购买权',
      '免费上门安装服务（限部分城市）',
      '生日特别优惠'
    ]
  }
];

// 模拟优惠券数据（用于搜索功能）
export const mockCoupons = [
  {
    id: 'c1',
    platform: '京东',
    productName: 'NVIDIA GeForce RTX 4070 Ti',
    discount: '满6000减500',
    expireDate: '2024-12-31',
    link: 'https://www.jd.com'
  },
  {
    id: 'c2',
    platform: '天猫',
    productName: 'AMD Ryzen 9 7950X',
    discount: '满4000减300',
    expireDate: '2024-11-30',
    link: 'https://www.tmall.com'
  },
  {
    id: 'c3',
    platform: '淘宝',
    productName: 'ASUS ROG Maximus Z790 Hero',
    discount: '满3000减200',
    expireDate: '2024-12-15',
    link: 'https://www.taobao.com'
  },
  {
    id: 'c4',
    platform: '拼多多',
    productName: 'Corsair Vengeance RGB DDR5 32GB',
    discount: '满1400减100',
    expireDate: '2024-11-15',
    link: 'https://www.pinduoduo.com'
  }
];